home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 4: Demo 1
/
almathera_demo1.bin
/
sourcecode
/
dexion
/
simple spr.s
< prev
next >
Wrap
Text File
|
1995-03-17
|
2KB
|
99 lines
org $38000
load $38000
j:
jmp amiga
execbase=4
permit=-138
even
gfxname:
dc.b "graphics.library",0
even
gfxbase:
dc.l 0
oldc:
dc.l 0
;
; openlib
;
amiga:
move.l execbase,a6
lea gfxname,a1
jsr -408(a6)
move.l d0,gfxbase
clr.l d0
; stopmultitasking
move.l execbase,a6
jsr -132(a6)
move.l gfxbase,a0
add.l #$32,a0
move.w #$0080,$dff096
move.l (a0),oldc
move.l #coplist,(a0)
move.l a0,-(a7)
move.w #$8080,$dff096
move.b #151,d0
move.b #194,d1
move.b #64,d2
move.b #44,d3
move.b #1,d4
move.b #1,d5
;
; wait for raster
;
vloop:
move.w $dff006,d6
and.w #$ff00,d6
cmp.w #$c000,d6
bne vloop
add.b d4,d2
subq.b #1,d0
bne mad
move.b #151,d0
eor.b #$fe,d4
mad:
move.b d2,$25001
add.b d5,d3
subq.b #1,d1
bne sen
move.b #194,d1
eor.b #$fe,d5
sen:
move.b d3,$25000
move.b d3,d6
add.b #6,d6
move.b d6,$25002
bottun:
andi.b #64,$bfe001
bne vloop
move.l (a7)+,a0
move.l oldc,(a0)
rts
coplist:
dc.w $0100,$1200
dc.w $00e0,$0004,$00e2,$0000
dc.w $008e,$2c91,$0090,$41f0
dc.w $0092,$0038,$0094,$00d0
dc.w $0096,$83a0
dc.w $0104,$0024,$0108,$0000,$010a,$0000
;
dc.w $0180,$0000,$0182,$0fe0,$0184,$030c
dc.w $0186,$050c,$0188,$080d,$018a,$0b0e
dc.w $018c,$0e0e,$018e,$0f0c
dc.w $0190,$06b5,$0192,$0b59,$0194,$0b7a
dc.w $0196,$0c8b,$0198,$0dac,$019a,$0dcd
dc.w $019c,$0eee,$019e,$0000
dc.w $01a2,$0ff0,$01a4,$00ff,$01a6,$0f0f
; spr pointer
dc.w $0120,$0002,$0122,$5000,$0124,$0003,$0126,$0000
dc.w $0128,$0003,$012a,$0000,$012c,$0003,$012e,$0000
dc.w $0130,$0003,$0132,$0000,$0134,$0003,$0136,$0000
dc.w $0138,$0003,$013a,$0000,$013c,$0003,$013e,$0000
sprite:
org $25000
load $25000
;spr data
dc.w $6d60,$7200,$ffff,$07e0,$13c8,$0ff0,$23c4,$1ff8
dc.w $13c8,$0ff0,$0990,$07e0,$0000,$0000
dc.w $ffff,$fffe